# id选择器
# 语法： 浏览器对象.find_element(by=By.CSS_SELECTOR,value="CSS表达式")
# 标签元素有ID属性
# 写法： value="#id属性值"
import time

from selenium import webdriver
from selenium.webdriver.common.by import By

driver = webdriver.Chrome()
driver.get("http://121.43.169.97:8848/pageA.html")

# ID选择器
# 获取账号的id="userA"，填写到value="#userA"中
driver.find_element(by=By.CSS_SELECTOR, value="#userA").send_keys("admin")

time.sleep(3)
driver.quit()

